/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package doan.quanlycanbo.portlet.service;

import com.liferay.portal.kernel.util.ClassLoaderProxy;
import com.liferay.portal.kernel.util.MethodHandler;
import com.liferay.portal.kernel.util.MethodKey;

/**
 * @author Nguyen Tuan Vinh
 */
public class hesoluongLocalServiceClp implements hesoluongLocalService {
	public hesoluongLocalServiceClp(ClassLoaderProxy classLoaderProxy) {
		_classLoaderProxy = classLoaderProxy;
	}

	public doan.quanlycanbo.portlet.model.hesoluong addhesoluong(
		doan.quanlycanbo.portlet.model.hesoluong hesoluong)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_addhesoluongMethodKey0,
				hesoluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public doan.quanlycanbo.portlet.model.hesoluong createhesoluong(
		long mahesoluong) {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_createhesoluongMethodKey1,
				mahesoluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public void deletehesoluong(long mahesoluong)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		MethodHandler methodHandler = new MethodHandler(_deletehesoluongMethodKey2,
				mahesoluong);

		try {
			_classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
				throw (com.liferay.portal.kernel.exception.PortalException)t;
			}

			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}
	}

	public void deletehesoluong(
		doan.quanlycanbo.portlet.model.hesoluong hesoluong)
		throws com.liferay.portal.kernel.exception.SystemException {
		MethodHandler methodHandler = new MethodHandler(_deletehesoluongMethodKey3,
				hesoluong);

		try {
			_classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}
	}

	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryMethodKey4,
				dynamicQuery);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List)ClpSerializer.translateOutput(returnObj);
	}

	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryMethodKey5,
				dynamicQuery, start, end);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List)ClpSerializer.translateOutput(returnObj);
	}

	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryMethodKey6,
				dynamicQuery, start, end, orderByComparator);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List)ClpSerializer.translateOutput(returnObj);
	}

	public long dynamicQueryCount(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_dynamicQueryCountMethodKey7,
				dynamicQuery);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return ((Long)returnObj).longValue();
	}

	public doan.quanlycanbo.portlet.model.hesoluong gethesoluong(
		long mahesoluong)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_gethesoluongMethodKey8,
				mahesoluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
				throw (com.liferay.portal.kernel.exception.PortalException)t;
			}

			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.hesoluong> gethesoluongs(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_gethesoluongsMethodKey9,
				start, end);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List<doan.quanlycanbo.portlet.model.hesoluong>)ClpSerializer.translateOutput(returnObj);
	}

	public int gethesoluongsCount()
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_gethesoluongsCountMethodKey10);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return ((Integer)returnObj).intValue();
	}

	public doan.quanlycanbo.portlet.model.hesoluong updatehesoluong(
		doan.quanlycanbo.portlet.model.hesoluong hesoluong)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_updatehesoluongMethodKey11,
				hesoluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public doan.quanlycanbo.portlet.model.hesoluong updatehesoluong(
		doan.quanlycanbo.portlet.model.hesoluong hesoluong, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_updatehesoluongMethodKey12,
				hesoluong, merge);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.hesoluong> getAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getAllMethodKey13);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List<doan.quanlycanbo.portlet.model.hesoluong>)ClpSerializer.translateOutput(returnObj);
	}

	public java.util.List<doan.quanlycanbo.portlet.model.hesoluong> getByNgachLuong(
		long ngachluong)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_getByNgachLuongMethodKey14,
				ngachluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (java.util.List<doan.quanlycanbo.portlet.model.hesoluong>)ClpSerializer.translateOutput(returnObj);
	}

	public doan.quanlycanbo.portlet.model.hesoluong addHeSoLuong(
		doan.quanlycanbo.portlet.model.hesoluong hesoluong1, long userId)
		throws com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_addHeSoLuongMethodKey15,
				hesoluong1, userId);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public doan.quanlycanbo.portlet.model.hesoluong updateHeSoLuong(
		long mahesoluong, long maNgachLuong, double bacLuong, double heSoluong)
		throws com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhesoluongException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_updateHeSoLuongMethodKey16,
				mahesoluong, maNgachLuong, bacLuong, heSoluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof doan.quanlycanbo.portlet.NoSuchhesoluongException) {
				throw (doan.quanlycanbo.portlet.NoSuchhesoluongException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public doan.quanlycanbo.portlet.model.hesoluong deleteHeSoLuong(
		long mahesoluong)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException,
			doan.quanlycanbo.portlet.NoSuchhesoluongException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_deleteHeSoLuongMethodKey17,
				mahesoluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
				throw (com.liferay.portal.kernel.exception.PortalException)t;
			}

			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof doan.quanlycanbo.portlet.NoSuchhesoluongException) {
				throw (doan.quanlycanbo.portlet.NoSuchhesoluongException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public doan.quanlycanbo.portlet.model.hesoluong deleteHeSoLuong(
		doan.quanlycanbo.portlet.model.hesoluong hesoluong)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		Object returnObj = null;

		MethodHandler methodHandler = new MethodHandler(_deleteHeSoLuongMethodKey18,
				hesoluong);

		try {
			returnObj = _classLoaderProxy.invoke(methodHandler);
		}
		catch (Throwable t) {
			if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
				throw (com.liferay.portal.kernel.exception.PortalException)t;
			}

			if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
				throw (com.liferay.portal.kernel.exception.SystemException)t;
			}

			if (t instanceof RuntimeException) {
				throw (RuntimeException)t;
			}
			else {
				throw new RuntimeException(t.getClass().getName() +
					" is not a valid exception");
			}
		}

		return (doan.quanlycanbo.portlet.model.hesoluong)ClpSerializer.translateOutput(returnObj);
	}

	public ClassLoaderProxy getClassLoaderProxy() {
		return _classLoaderProxy;
	}

	private ClassLoaderProxy _classLoaderProxy;
	private MethodKey _addhesoluongMethodKey0 = new MethodKey(_classLoaderProxy.getClassName(),
			"addhesoluong", doan.quanlycanbo.portlet.model.hesoluong.class);
	private MethodKey _createhesoluongMethodKey1 = new MethodKey(_classLoaderProxy.getClassName(),
			"createhesoluong", long.class);
	private MethodKey _deletehesoluongMethodKey2 = new MethodKey(_classLoaderProxy.getClassName(),
			"deletehesoluong", long.class);
	private MethodKey _deletehesoluongMethodKey3 = new MethodKey(_classLoaderProxy.getClassName(),
			"deletehesoluong", doan.quanlycanbo.portlet.model.hesoluong.class);
	private MethodKey _dynamicQueryMethodKey4 = new MethodKey(_classLoaderProxy.getClassName(),
			"dynamicQuery", com.liferay.portal.kernel.dao.orm.DynamicQuery.class);
	private MethodKey _dynamicQueryMethodKey5 = new MethodKey(_classLoaderProxy.getClassName(),
			"dynamicQuery",
			com.liferay.portal.kernel.dao.orm.DynamicQuery.class, int.class,
			int.class);
	private MethodKey _dynamicQueryMethodKey6 = new MethodKey(_classLoaderProxy.getClassName(),
			"dynamicQuery",
			com.liferay.portal.kernel.dao.orm.DynamicQuery.class, int.class,
			int.class, com.liferay.portal.kernel.util.OrderByComparator.class);
	private MethodKey _dynamicQueryCountMethodKey7 = new MethodKey(_classLoaderProxy.getClassName(),
			"dynamicQueryCount",
			com.liferay.portal.kernel.dao.orm.DynamicQuery.class);
	private MethodKey _gethesoluongMethodKey8 = new MethodKey(_classLoaderProxy.getClassName(),
			"gethesoluong", long.class);
	private MethodKey _gethesoluongsMethodKey9 = new MethodKey(_classLoaderProxy.getClassName(),
			"gethesoluongs", int.class, int.class);
	private MethodKey _gethesoluongsCountMethodKey10 = new MethodKey(_classLoaderProxy.getClassName(),
			"gethesoluongsCount");
	private MethodKey _updatehesoluongMethodKey11 = new MethodKey(_classLoaderProxy.getClassName(),
			"updatehesoluong", doan.quanlycanbo.portlet.model.hesoluong.class);
	private MethodKey _updatehesoluongMethodKey12 = new MethodKey(_classLoaderProxy.getClassName(),
			"updatehesoluong", doan.quanlycanbo.portlet.model.hesoluong.class,
			boolean.class);
	private MethodKey _getAllMethodKey13 = new MethodKey(_classLoaderProxy.getClassName(),
			"getAll");
	private MethodKey _getByNgachLuongMethodKey14 = new MethodKey(_classLoaderProxy.getClassName(),
			"getByNgachLuong", long.class);
	private MethodKey _addHeSoLuongMethodKey15 = new MethodKey(_classLoaderProxy.getClassName(),
			"addHeSoLuong", doan.quanlycanbo.portlet.model.hesoluong.class,
			long.class);
	private MethodKey _updateHeSoLuongMethodKey16 = new MethodKey(_classLoaderProxy.getClassName(),
			"updateHeSoLuong", long.class, long.class, double.class,
			double.class);
	private MethodKey _deleteHeSoLuongMethodKey17 = new MethodKey(_classLoaderProxy.getClassName(),
			"deleteHeSoLuong", long.class);
	private MethodKey _deleteHeSoLuongMethodKey18 = new MethodKey(_classLoaderProxy.getClassName(),
			"deleteHeSoLuong", doan.quanlycanbo.portlet.model.hesoluong.class);
}